//C1 E21

#include <stdio.h>

#define INTER 20

int main()
{
    int c;
    int nb, nt, pos;

    nb = nt = 0;
    pos = 1;

    while ((c = getchar()) != EOF)
    {
        if (c == ' ')
        {
            nb++;
        }
        }
}